package pers.cj.pdos.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 当全部入库时，会删除该记录
 * </p>
 *
 * @author chenj
 * @since 2020-04-13
 */
public class HouseWaitIn extends Model<HouseWaitIn> {

    private static final long serialVersionUID = 1L;

    private String id;

    /**
     * 仓库id
     */
    private String houseId;

    /**
     * 关联单据是否关闭
     */
    private Boolean close;

    /**
     * 1待入库  2部分入库 3全部入库
     */
    private Integer status;

    /**
     * 1进货 2-销售退货 3-调拨 4-借入 5-借出归还
     */
    private Integer type;

    /**
     * 出库单id(仅调拨出库产出入库单时有值)
     */
    private String houseOutId;

    /**
     * 进货单id
     */
    private String inGoodsId;

    /**
     * 销售退货id
     */
    private String refundId;

    /**
     * 调拨单id
     */
    private String goodsTransferId;

    /**
     * 借入单id
     */
    private String borrowInId;

    /**
     * 借出归还单id
     */
    private String borrowOutBackId;

    private Date time;

    private String companyId;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
    public String getHouseId() {
        return houseId;
    }

    public void setHouseId(String houseId) {
        this.houseId = houseId;
    }
    public Boolean getClose() {
        return close;
    }

    public void setClose(Boolean close) {
        this.close = close;
    }
    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }
    public String getHouseOutId() {
        return houseOutId;
    }

    public void setHouseOutId(String houseOutId) {
        this.houseOutId = houseOutId;
    }
    public String getInGoodsId() {
        return inGoodsId;
    }

    public void setInGoodsId(String inGoodsId) {
        this.inGoodsId = inGoodsId;
    }
    public String getRefundId() {
        return refundId;
    }

    public void setRefundId(String refundId) {
        this.refundId = refundId;
    }
    public String getGoodsTransferId() {
        return goodsTransferId;
    }

    public void setGoodsTransferId(String goodsTransferId) {
        this.goodsTransferId = goodsTransferId;
    }
    public String getBorrowInId() {
        return borrowInId;
    }

    public void setBorrowInId(String borrowInId) {
        this.borrowInId = borrowInId;
    }
    public String getBorrowOutBackId() {
        return borrowOutBackId;
    }

    public void setBorrowOutBackId(String borrowOutBackId) {
        this.borrowOutBackId = borrowOutBackId;
    }
    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }
    public String getCompanyId() {
        return companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "HouseWaitIn{" +
            "id=" + id +
            ", houseId=" + houseId +
            ", close=" + close +
            ", status=" + status +
            ", type=" + type +
            ", houseOutId=" + houseOutId +
            ", inGoodsId=" + inGoodsId +
            ", refundId=" + refundId +
            ", goodsTransferId=" + goodsTransferId +
            ", borrowInId=" + borrowInId +
            ", borrowOutBackId=" + borrowOutBackId +
            ", time=" + time +
            ", companyId=" + companyId +
        "}";
    }
}
